package com.ucap.weking.guangan;

import android.annotation.SuppressLint;
import android.app.Application;
import android.os.Build;
import android.support.annotation.RequiresApi;
import android.telecom.PhoneAccountHandle;
import android.telecom.TelecomManager;

import com.gw.swipeback.tools.WxSwipeBackActivityManager;
import com.umeng.analytics.MobclickAgent;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import cn.jpush.android.api.JPluginPlatformInterface;
import cn.jpush.android.api.JPushInterface;

/**
 * Created by weking on 2017/10/17.
 */

public class GuangAnApplication extends Application {
    public final String YOUMENG_KEY = "5a1299c3a40fa375eb0000af";//友盟统计key

    @SuppressLint("ServiceCast")
    @Override
    public void onCreate() {
        super.onCreate();
        WxSwipeBackActivityManager.getInstance().init(this);
        MobclickAgent.onProfileSignIn(YOUMENG_KEY);
        JPushInterface.setDebugMode(true);
        HashSet<String> arrayList = new HashSet<>();
        arrayList.add("guangan");
        JPushInterface.setTags(getApplicationContext(), 0, arrayList);
//        JPushInterface.setAlias(getApplicationContext(), 0, "guangan");
        JPushInterface.init(getApplicationContext());
    }


}
